package cn.edu.scau.cmi.suwenpeng.chapter06;
class A_exercise7{
	double f(double x,double y) {
		return x+y;
	}
	static int g(int n) {
		return n*n;
	}
}
class B_exercise7 extends A_exercise7{
	double f(double x,double y) {
		double m=super.f(x, y);
		return m+x*y;		
	}
	static int g(int n) {
		int m=A_exercise7.g(n);
		return m+n;
	}
}
public class E_exercise7 {

	public static void main(String[] args) {
		B_exercise7 b=new B_exercise7();
		System.out.println(b.f(10.0,8.0));
		System.out.println(B_exercise7.g(3));	

	}

}
